package svgedit.gui.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import svgedit.gui.Frame;

/**
 * Class to add Save As.. to the menuitem's
 * 
 * @author SARJ
 * 
 */
public class SaveAsAction extends AbstractAction
{
	private static final long serialVersionUID = 4859965185645817637L;

	/**
	 * Construct a new SaveAsAction
	 */
	public SaveAsAction()
	{
		super("Save as...");
	}

	/**
	 * Handles the press action and calls Frame.saveFile
	 * {@link svgedit.gui.Frame}
	 */
	@Override
	public void actionPerformed(ActionEvent e)
	{
		Frame.getFrame().saveFile(Frame.DIALOG_MODE_FORCE);
	}
}
